package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    /*
    *  新增菜品和口味数据
    * */
   public void save(DishDTO dishDTO);

   /*
   *  菜品分页查询
   * */
    PageResult pageQuary(DishPageQueryDTO dishPageQueryDTO);

    void delete(List<Long> ids);

    DishVO getById(Long id);

    void updateWithFlavor(DishDTO dishDTO);

    void startOrstop(Integer status, Long id);

    List<Dish> list(Long categoryId);

    List<DishVO> getDishWithFlavors(Long categoryId);
}
